<?php
class Zdvcha extends AppModel {

	var $name = 'Zdvcha';
	var $validate = array(
		'cha_id' => array('numeric'),
		'tendvcha' => array('notempty'),
		'donvi_id' => array('numeric'),
		'tendv' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Cha' => array(
			'className' => 'Cha',
			'foreignKey' => 'cha_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Donvi' => array(
			'className' => 'Donvi',
			'foreignKey' => 'donvi_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>